package com.example.oj;

import lombok.val;

import javax.swing.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.util.Scanner;

/**
 * @author zjianfa
 */
public class Test implements Solution {
    public static void main(String[] args) throws IOException {
        new Test().main();
    }

    public void main() throws IOException {
        FileManager fileManager = new FileManager("p2", 1);
        List<Scanner> scannerList = fileManager.getInput();

        for (int i = 0; i < scannerList.size(); i++) {
            PrintOut printOut = new PrintOut("p2/" + String.valueOf(i+1) + FileManager.OUT_SUFFIX);
            solution(scannerList.get(i));
            printOut.close();
        }
    }

    @Override
    public void solution(Scanner in){
        String s = in.next();
        System.out.println(s);
    }
}
